angular.module('app').config(['$routeProvider', ($routeProvider) => {
  $routeProvider
  .when('/', {
    title: 'welcome',
    templateUrl: 'views/welcome.html'
  })
  .when('/messages', {
    title: 'messages',
    templateUrl: 'views/messages.html',
    controller: 'MessagesController',
    controllerAs: 'messages'
  })
  .when('/templates', {
    title: 'templates',
    templateUrl: 'views/template-list.html',
    controller: 'TemplateController',
    controllerAs: 'templates'
  })
  .otherwise('/messages');
}]);